﻿import QtQuick 2.12
import QtQuick.Controls 2.12
import QtGraphicalEffects 1.0

// 不能异步，已弃用 =================================================================

Item {


    id: root

    property real size: 40*dp

    height: size; width: size

    property color color: config.themeColor

    property bool isRunning: root.visible

    CustomImage{
        anchors.fill: parent
        source: "qrc:/picture/loading3.png"
        ColorOverlay{
            anchors.fill: parent
            color: root.color
            source: parent
        }
        mipmap: true
        RotationAnimation on rotation {
            from: 0
            to: 360
            running: root.isRunning
            duration: 1000
            loops: Animation.Infinite
        }
    }


}
